import BaseApi from "@/handle/api/base/BaseApi";
import MaterialCategory from "@/handle/data/name/MaterialCategory";

export function getBaseApi(entityName: string): any {
  switch (entityName) {
    case "MaterialCategory": {
      const entityApi = new BaseApi<MaterialCategory>("/material-category");
      return entityApi;
    }
    default: {
      console.log("尚未定义" + entityName + "的Api");
      break;
    }
  }
}
